package adv5;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
public class Person implements Serializable {
    private String name;
    private int age;
    private String like;
    public final static long serialVersionUID = 1L;
    public Person(){

    }

    public Person(String name, int age, String like) {
        this.name = name;
        this.age = age;
        this.like = like;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getLike() {
        return like;
    }

    public void setLike(String like) {
        this.like = like;
    }

    @Override
    public String toString() {
        return "人{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", like='" + like + '\'' +
                '}';
    }
}
